home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 26 / Cream of the Crop 26.iso / os2 / pvm34b3.zip / pvm34b3 / pvm3 / libfpvm / pvmfgetinst.m4 < prev    next >
Text File  |  1997-07-22  |  479b  |  26 lines

  1.  
  2. /* $Id: pvmfgetinst.m4,v 1.2 1996/10/04 15:27:05 pvmsrc Exp $ */
  3.  
  4. #include "pvm3.h"
  5. #include "pvm_consts.h"
  6.  
  7. void
  8. FUNCTION(pvmfgetinst) ARGS(`STRING_ARG(group), tid, inum')
  9. STRING_ARG_DECL(group);
  10. int *inum, *tid;
  11. {
  12.     char tgroup[MAX_GRP_NAME + 1];
  13.  
  14.     /*
  15.      * Copy the group name to make sure there's
  16.      * a NUL at the end.
  17.      */
  18.     if (ftocstr(tgroup, sizeof(tgroup), STRING_PTR(group), STRING_LEN(group))){
  19.         *inum = PvmBadParam;
  20.         return;
  21.     }
  22.  
  23.     *inum = pvm_getinst(tgroup, *tid);
  24. }
  25.  
  26.